package homework08;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;

public class homework002a {
	public static void main(String[] args) {
		
	}
	private static void streamCopyFile(File scrFile,File desFile) throws Exception{
		FileInputStream fi=new FileInputStream(scrFile);
		FileOutputStream fo=new FileOutputStream(desFile);
		int ch=0;
		while((ch=fi.read())!=-1){
			fo.write(ch);
		}
		fi.close();
		fo.close();
	}
}
